﻿using Microsoft.Xna.Framework.Graphics;
using Newtonsoft.Json.Linq;
using Sparklings.JsonUtils;
using Sparklings.Rendering;

namespace Sparklings.LevelElements
{
    public class DefaultPlatform : Platform
    {
        public DefaultPlatform(Level level, int x, int y)
            : base(level, x, y, true)
        {
        }
        public override void LoadGraphicsRelatedElements()
        {
            base.LoadGraphicsRelatedElements();
            BaseTexture = Level.ContentManager.Load<Texture2D>("Platform2");
        }
        public override void DrawBase(RenderContext rc)
        {
            base.DrawBase(rc);
        }
        public static object ConstructFromData(JsonOverrider converter, JToken toConvert, Level level, int x, int y)
        {
            return new DefaultPlatform(level, x, y);
        }
    }
}
